const storage = {
    // 新增
    set(key,value){
        localStorage.setItem(key,JSON.stringify(value))
    },
    // 获取
    get(key){
        // return JSON.parse(localStorage.getItem(key))
        return  localStorage.getItem(key)
    },
    // 删除
    remote(key){
        localStorage.removeItem(key)
    }
}

export default storage
